package org.lex.ftp.model;

import javax.swing.Icon;

import org.lex.ftp.util.FTPFileIconCache;
import org.lex.net.ftp.IFTPFile;


public class LocalFTPFileView implements FTPFileView {
	private static final FTPFileIconCache instance = FTPFileIconCache.getInstance();

	public Icon getIcon(IFTPFile file) {
		if (file.isDirectory())
			return instance.getFolderIcon();
		else
			return instance.getIcon(file);
	}
}
